package com.qiaofang.housewarehouse.stub.facade;

import com.qiaofang.housewarehouse.stub.request.HouseQueryDetailRequest;
import com.qiaofang.housewarehouse.stub.request.ListHouseQueryDetailByIdsRequest;
import com.qiaofang.housewarehouse.stub.request.RentHouseQueryPriceRequest;
import com.qiaofang.housewarehouse.stub.request.RentalHouseQueryRequest;
import com.qiaofang.housewarehouse.stub.request.SaleHouseQueryRequest;
import com.qiaofang.housewarehouse.stub.response.ListRentalHouseQueryDetailByIdsResponse;
import com.qiaofang.housewarehouse.stub.response.ListSaleHouseQueryDetailByIdsResponse;
import com.qiaofang.housewarehouse.stub.response.RentalHouseQueryDetailListResponse;
import com.qiaofang.housewarehouse.stub.response.RentalHouseQueryDetailResponse;
import com.qiaofang.housewarehouse.stub.response.SaleHouseQueryDetailListResponse;
import com.qiaofang.housewarehouse.stub.response.SaleHouseQueryDetailResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: GJ
 * @Date: 2018/4/3 19:23
 * @Description:
 */
@FeignClient(name = "housewarehouse",url="${feign.url.housewarehouse}")
@Api(tags = "RentalHouseQueryInfo", value = "出租房源接口", description = "出租房源接口（最新版）")
@RequestMapping(value = {"/RentalHouseQueryInfo"})
public interface RentalHouseQueryInfofacade {

    @ApiOperation(value="出租房源详细列表",response = SaleHouseQueryDetailListResponse.class )
    @RequestMapping(value = "/getRentalHouseList",method = RequestMethod.POST)
    RentalHouseQueryDetailListResponse getRentalHouseInfo(RentHouseQueryPriceRequest rentalHouseQueryRequest);

  //  @ApiOperation(value = "出租房源详情", response = RentalHouseQueryDetailResponse.class)
    @RequestMapping(value = "/getRentalHouseDetail", method = RequestMethod.POST)
    RentalHouseQueryDetailResponse getRentalHouseDetail(HouseQueryDetailRequest rentalHouseQueryDetailRequest);

    @ApiOperation(value="根据房源Id集合出售房源详情",response = SaleHouseQueryDetailResponse.class )
    @RequestMapping(value = "/listRentHouseDetailByIds",method = RequestMethod.POST)
    public ListRentalHouseQueryDetailByIdsResponse listRentalHouseDetailByIds(ListHouseQueryDetailByIdsRequest saleHouseQueryRequest);
}
